var special_glcode = new Array();
var special_action = new Array();
var special_glinfo = new Array();   // for displaying extra pop out information

//special_glcode[special_glcode.length] = "701100"; special_action[special_action.length] = "Mileage";
//special_glcode[special_glcode.length] = "701100"; special_action[special_action.length] = "Taxi";  
//special_glcode[special_glcode.length] = "701100"; special_action[special_action.length] = "Taxi";
special_glcode[special_glcode.length] = "701100"; special_action[special_action.length] = "PublishTransport"; 
special_glcode[special_glcode.length] = "704400"; special_action[special_action.length] = "EntertainmentForGift"; special_glinfo[special_glinfo.length] = "704400";
special_glcode[special_glcode.length] = "704300"; special_action[special_action.length] = "EntertainmentForGift"; special_glinfo[special_glinfo.length] = "704300";
special_glcode[special_glcode.length] = "704100-2"; special_action[special_action.length] = "EntertainmentForGift"; special_glinfo[special_glinfo.length] = "704100-2";
//special_glcode[special_glcode.length] = "820120"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820120";
//special_glcode[special_glcode.length] = "820114"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820114";
//special_glcode[special_glcode.length] = "820110"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820110";
//special_glcode[special_glcode.length] = "820112"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820112";


function ShowSpecialPopOut (GLCode, ResultContainer, Param) {
  var SelectedIndex = -1;
  
 
  for (var x = 0; x < special_glcode.length; x++) {
     
    if (special_glcode[x] == GLCode) {
    
        SelectedIndex = x;
        break;
    }
  }
     
  if (SelectedIndex >= 0) {
    ShowModal(special_action[SelectedIndex], ResultContainer, Param);
  }
}

function RowAmountIsControlled(GLCode) {
    
    var IsControlled = false;
    
      for (var x = 0; x < special_glcode.length; x++) {
         
        if (special_glcode[x] == GLCode) {
        
            IsControlled = true;
            break;
        }
      }    
    
    return IsControlled;

}
